<?php
/**
 * Created by PhpStorm.
 * User: hanbin
 * Date: 17/3/29
 * Time: 下午4:06
 */

namespace App\Http\Controllers\Zhihu;


use App\Logic\AreaLogic;

/**
 * 地域
 * Class AreaController
 * @package App\Http\Controllers\Auth
 */
class AreaController extends BaseController
{
    public function __construct()
    {

    }

    /**
     * 获取列表
     */
    public function getList()
    {
        $page = request()->input('pagesize');
        $last_id = request()->input('last_id');
        $p_id = request()->input('p_id');
        $so = [];
        $so['fid'] = $p_id;
        $result = AreaLogic::getList($page, null, $last_id,$so);
        return $this->success($result);
    }
}